home *** CD-ROM | disk | FTP | other *** search
- Path: grimmy.reshall.umich.edu!user
- From: bforney@umich.edu (Brian Forney)
- Newsgroups: comp.lang.c++
- Subject: Problem with copy constructor in derived class
- Date: Mon, 01 Apr 1996 22:28:19 -0500
- Organization: University of Michigan, College of Engineering
- Message-ID: <bforney-0104962228190001@grimmy.reshall.umich.edu>
- NNTP-Posting-Host: grimmy.reshall.umich.edu
-
- Hello. I'm trying to create a copy constructor for a derived class. The
- base class does not have a copy constructor, so this could be a problem.
- (I'm really not sure.) Can anyone tell me if the base class needs a copy
- constructor?
-
- I started to consider the lack of a copy constructor in the base class a
- problem when Metrowerks 8's C++ compiler displayed this warning:
-
- Error : cannot construct base class 'LArray'
- UUrl.cp line 27 }
-
- Here's the function in which the error occurs:
-
- LUrlArray::LUrlArray(const LUrlArray &inArray)
- {
- CopyWholeArray(inArray);
- }
-
- The error occurs at the close brace. I'm not sure why this is happening.
- Any suggestions?
-